<div class="elevator-info">
  <nz-spin [nzTip]="'正在查询请等待...'" [nzSize]="'large'" [nzSpinning]="nzSpinning">
    <nz-collapseset>
      <nz-collapse [nzTitle]="'查询'" [nzActive]="true">
        <form nz-form [nzLayout]="'inline'">
          <div nz-row>
            <div nz-form-item nz-col [nzSpan]="8">
              <div nz-form-label nz-col [nzSm]="12" [nzXs]="12">
                <label>注册代码</label>
              </div>
              <div nz-form-control nz-col [nzSm]="12" [nzXs]="12">
                <nz-input  style="width: 200px;" name="elevatorNum" [(ngModel)]="unconfirmedMaintenance.elevatorNum">
                </nz-input>
              </div>
            </div>
            <!--<div nz-form-item nz-col [nzSpan]="8">
              <div nz-form-label nz-col [nzSm]="12" [nzXs]="12">
                <label>外部关联码(档案号)</label>
              </div>
              <div nz-form-control nz-col [nzSm]="12" [nzXs]="12">
                <nz-input  style="width: 200px;" name="elevatorNum" [(ngModel)]="unconfirmedMaintenance.outsideNum">
                </nz-input>
              </div>
            </div>-->
            <button nz-col [nzSm]="12" [nzXs]="12" style="margin-left:87px;width: 90px;" nz-button [nzSize]="'large'" [nzType]="'primary'" (click)="queryUp()">查询</button>
          </div>
        </form>
      </nz-collapse>
    </nz-collapseset>

    <ul nz-menu [nzMode]="'horizontal'">
        <li permission="WQR0002" nz-menu-item (click)="sendNotice()">
        <i class="anticon anticon-copy"></i>发送确认通知</li>
    </ul>

    <nz-table #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false"
      >
      <thead nz-thead>
        <tr>
          <th nz-th [nzCheckbox]="true">
            <label nz-checkbox [(ngModel)]="allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)">
            </label>
          </th>
          <th nz-th>
            <span>外部关联码</span>
          </th>
          <th nz-th>
            <span>注册代码</span>
          </th>
          <th nz-th>
          <span>维保人员1</span>
          </th>
          <th nz-th>
            <span>维保人员2</span>
          </th>
          <th nz-th>
            <span>开始时间</span>
          </th>
          <th nz-th>
            <span>结束时间</span>
          </th>
          <th nz-th>
            <span>电梯类型</span>
          </th>
          <th nz-th>
            <span>使用单位</span>
          </th>
          <th nz-th >
            <span>发送结果状态</span>
          </th>

        </tr>
      </thead>
      <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let elevatt of list">
          <td nz-td [nzCheckbox]="true">
            <label nz-checkbox [nzDisabled]="elevatt.disabled" [(ngModel)]="elevatt.checked" >
            </label>
          </td>
          <td nz-td>{{elevatt.outsideNum}}</td>
          <td nz-td>{{elevatt.elevatorNum}}</td>
          <td nz-td>{{elevatt.maintenanceUserName}}</td>
          <td nz-td>{{elevatt.maintenanceUserName2}}</td>
          <td nz-td>{{elevatt.maintenanceStartDate}}</td>
          <td nz-td>{{elevatt.maintenanceEndDate}}</td>
          <td nz-td>{{elevatt.type | constantTransfer : elevatorTypes}}</td>
          <td nz-td>{{elevatt.partyName}}</td>
          <td nz-td *ngIf="elevatt.flag==4" style="background-color: #ff4100;color: white">{{elevatt.message}}</td>
          <td nz-td *ngIf="elevatt.flag==3" style="background-color: #fb5c07;color: white">{{elevatt.message}}</td>
          <td nz-td *ngIf="elevatt.flag==2" style="background-color: #ceb437;color: white">{{elevatt.message}}</td>
          <td nz-td *ngIf="elevatt.flag==1" style="background-color: #129A6F;color: white">{{elevatt.message}}</td>
          <td nz-td *ngIf="elevatt.flag==0 || elevatt.flag==5 ">{{elevatt.message}}</td>
        </tr>
      </tbody>
    </nz-table>
    <nz-pagination [nzPageIndex]="unconfirmedMaintenance.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger
      (nzPageSizeChange)="nzPageSizeChange($event)" (nzPageIndexChange)="nzPageIndexChange($event)"
      (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="unconfirmedMaintenance.pageSize"></nz-pagination>

  </nz-spin>
</div>
